/**
 * 
 */
package com.vg.json;

import org.json.JSONArray;
import org.json.JSONException;

import com.kdstudio.network.URLRequest;
import com.kdstudio.network.datatypes.KDData;
import com.kdstudio.network.reponse.URLReponse;

/**
 * @author h0akd93
 * 
 */
public class URLJSONArrayResponse implements URLReponse {

	public JSONArray jsonArray;

	@Override
	public Exception processResponse(KDData arg0, URLRequest arg1) {
		try {
			jsonArray = new JSONArray(new String(arg0.getBytes()));
		} catch (JSONException e) {
			e.printStackTrace();
			return e;
		}

		return null;
	}

}
